<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="http://localhost:8080/CourseSupport/js/jquery-1.11.3.min.js" ></script>
</head>
<body>
<center><a href="http://localhost:8080/CourseSupport/user/list?page=1">列表</a><a href="http://localhost:8080/CourseSupport/addUser.jsp">添加</a></center>
<br><br>
<center>
<table>
	<tr><th>用户名</th><th>密码</th><th>性别</th><th>删除</th><th>详情</th><th>编辑</th></tr>
	<tbody>
	<c:forEach items="${users}" var="user">
		<tr><th>${user.id}</th><th>${user.username}</th><th>${user.password}</th><th>${user.sex}</th><th><a href="<c:url value='http://localhost:8080/CourseSupport/user/delete/${user.id}'/>">删除</a></th><th><a href="<c:url value='http://localhost:8080/CourseSupport/user/detail/${user.id}'/>">详情</a></th><th><a href="<c:url value='http://localhost:8080/CourseSupport/user/update/${user.id}'/>">编辑</a></th></tr>
	</c:forEach>
	</tbody>
</table>
</center>
</body>
</html>

